/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package phd.utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author baez
 */
public class DBUtil {
    
    public static Connection getConnection() {
        Connection con = null;
        
        try {

            Class.forName("com.mysql.jdbc.Driver").newInstance();
            con = DriverManager.
            getConnection("jdbc:mysql://test.liquidpub.org:3306/phdcourse",
                            "swengdevel", 
                            ".swengdevel.");                  

        } catch (Exception ex) {
            ex.printStackTrace();
        }
        
        return con;          

    }
    
}
